#ifndef __AP3216C2_H
#define __AP3216C2_H

#include "../i2c/bsp_i2c.h"

#define AP3216_ADDRESS 0x1E

#define AP3216_SYSTEM_CONFIGRATION_ADDRESS 0x00

#define AP3216_PS_CONFIGRATION_ADDRESS 0x20
#define AP3216_PS_DATA_LOW_ADDRESS 0x0E
#define AP3216_PS_DATA_HIGH_ADDRESS 0x0F

#define AP3216_ALS_CONFIGRATION_ADDRESS 0x10
#define AP3216_ALS_DATA_LOW_ADDRESS 0x0C
#define AP3216_ALS_DATA_HIGH_ADDRESS 0x0D

void AP3216_Init();
uint16_t AP3216_R_ALS();
uint16_t AP3216_R_PS();

#endif
